home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / windows.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  6.4 KB  |  306 lines

  1. /*++ BUILD Version: 0001    Increment this if a change has global effects
  2.  
  3. Copyright (c) 1985-1996, Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.  
  8.     windows.h
  9.  
  10. Abstract:
  11.  
  12.     Master include file for Windows applications.
  13.  
  14. --*/
  15.  
  16. #ifndef _WINDOWS_
  17. #define _WINDOWS_
  18. #pragma option push -b
  19.  
  20. #ifndef WINVER
  21. #define WINVER 0x0400
  22. #endif
  23.  
  24. #ifndef _INC_WINDOWS
  25. #define _INC_WINDOWS
  26.  
  27. /*  If defined, the following flags inhibit definition
  28.  *     of the indicated items.
  29.  *
  30.  *  NOGDICAPMASKS     - CC_*, LC_*, PC_*, CP_*, TC_*, RC_
  31.  *  NOVIRTUALKEYCODES - VK_*
  32.  *  NOWINMESSAGES     - WM_*, EM_*, LB_*, CB_*
  33.  *  NOWINSTYLES       - WS_*, CS_*, ES_*, LBS_*, SBS_*, CBS_*
  34.  *  NOSYSMETRICS      - SM_*
  35.  *  NOMENUS           - MF_*
  36.  *  NOICONS           - IDI_*
  37.  *  NOKEYSTATES       - MK_*
  38.  *  NOSYSCOMMANDS     - SC_*
  39.  *  NORASTEROPS       - Binary and Tertiary raster ops
  40.  *  NOSHOWWINDOW      - SW_*
  41.  *  OEMRESOURCE       - OEM Resource values
  42.  *  NOATOM            - Atom Manager routines
  43.  *  NOCLIPBOARD       - Clipboard routines
  44.  *  NOCOLOR           - Screen colors
  45.  *  NOCTLMGR          - Control and Dialog routines
  46.  *  NODRAWTEXT        - DrawText() and DT_*
  47.  *  NOGDI             - All GDI defines and routines
  48.  *  NOKERNEL          - All KERNEL defines and routines
  49.  *  NOUSER            - All USER defines and routines
  50.  *  NONLS             - All NLS defines and routines
  51.  *  NOMB              - MB_* and MessageBox()
  52.  *  NOMEMMGR          - GMEM_*, LMEM_*, GHND, LHND, associated routines
  53.  *  NOMETAFILE        - typedef METAFILEPICT
  54.  *  NOMINMAX          - Macros min(a,b) and max(a,b)
  55.  *  NOMSG             - typedef MSG and associated routines
  56.  *  NOOPENFILE        - OpenFile(), OemToAnsi, AnsiToOem, and OF_*
  57.  *  NOSCROLL          - SB_* and scrolling routines
  58.  *  NOSERVICE         - All Service Controller routines, SERVICE_ equates, etc.
  59.  *  NOSOUND           - Sound driver routines
  60.  *  NOTEXTMETRIC      - typedef TEXTMETRIC and associated routines
  61.  *  NOWH              - SetWindowsHook and WH_*
  62.  *  NOWINOFFSETS      - GWL_*, GCL_*, associated routines
  63.  *  NOCOMM            - COMM driver routines
  64.  *  NOKANJI           - Kanji support stuff.
  65.  *  NOHELP            - Help engine interface.
  66.  *  NOPROFILER        - Profiler interface.
  67.  *  NODEFERWINDOWPOS  - DeferWindowPos routines
  68.  *  NOMCX             - Modem Configuration Extensions
  69.  */
  70.  
  71. #if defined(RC_INVOKED) && !defined(NOWINRES)
  72.  
  73.  
  74.  
  75. #include <winresrc.h>
  76.  
  77.  
  78. #else
  79.  
  80. #if defined(RC_INVOKED)
  81. /* Turn off a bunch of stuff to ensure that RC files compile OK. */
  82. #define NOATOM
  83. #define NOGDI
  84. #define NOGDICAPMASKS
  85. #define NOMETAFILE
  86. #define NOMINMAX
  87. #define NOMSG
  88. #define NOOPENFILE
  89. #define NORASTEROPS
  90. #define NOSCROLL
  91. #define NOSOUND
  92. #define NOSYSMETRICS
  93. #define NOTEXTMETRIC
  94. #define NOWH
  95. #define NOCOMM
  96. #define NOKANJI
  97. #define NOCRYPT
  98. #define NOMCX
  99. #endif
  100.  
  101. #if defined(__cplusplus) && defined(__BORLANDC__)
  102. #include <mem.h>  // Get correct namespace compliant protos for memcpy, etc.
  103.                   // since WINDOWS.H and its associated files use them.
  104. #endif
  105.  
  106. #if defined(__BORLANDC__)
  107. #    ifndef _WIN32_WINNT
  108. #        define _WIN32_WINNT 0x0400  /* If not set, assume NT 4.00  */
  109. #    endif
  110. #    if !defined(__MFC_COMPAT__)
  111. #        undef  _ANONYMOUS_STRUCT    /* The correct term */
  112. #    else
  113. #        define _ANONYMOUS_STRUCT    /* on for __MFC_COMPAT__ support */
  114. #    endif
  115. #    if defined(__cplusplus)
  116. #        ifndef _WCHAR_T_DEFINED
  117. #           define _WCHAR_T_DEFINED
  118. #        endif
  119. #       define __inline  inline
  120. #    else
  121. #        undef  _ANONYMOUS_UNION    /* The correct term */
  122. #        define NONAMELESSUNION     /* Incorrect term, but MS keeps using it! */
  123. #        define __inline
  124. #    endif
  125. #    if defined(_UNICODE)
  126. #        define UNICODE
  127. #    endif
  128. #    if defined(__cplusplus)
  129.      // The following RTL functions are referred to in various macros defined
  130.      // in the Windows headers.  Since C++ now requires that most RTL functions
  131.      // appear in the std namespace, we must yank a copy of these into the
  132.      // global namespace so that the Windows Headers' non std:: scoped
  133.      // references to these RTL memxxx functions compile properly.
  134.         using std::memset;
  135.         using std::memcmp;
  136.         using std::memcpy;
  137.         using std::memmove;
  138. #    endif
  139. #endif
  140.  
  141. #if !defined(_PPC_) && !defined(_ALPHA_) && !defined(_MIPS_) && !defined(_X86_) && defined(_M_IX86)
  142. #define _X86_
  143. #endif
  144.  
  145. #if !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_MRX000)
  146. #define _MIPS_
  147. #endif
  148.  
  149. #if !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_ALPHA)
  150. #define _ALPHA_
  151. #endif
  152.  
  153. #if !defined(_PPC_) && !defined(_ALPHA_) && !defined(_X86_) && !defined(_MIPS_) && defined(_M_PPC)
  154. #define _PPC_
  155. #endif
  156.  
  157. #ifndef RC_INVOKED
  158. #if     ( _MSC_VER >= 800 )
  159. #pragma warning(disable:4001)
  160. #endif
  161.  
  162. #include <excpt.h>
  163.  
  164.  
  165. #include <stdarg.h>
  166.  
  167. #endif /* RC_INVOKED */
  168.  
  169.  
  170. #include <windef.h>
  171.  
  172.  
  173. #include <winbase.h>
  174.  
  175.  
  176. #include <wingdi.h>
  177.  
  178.  
  179. #include <winuser.h>
  180.  
  181.  
  182. #include <winnls.h>
  183.  
  184.  
  185. #include <wincon.h>
  186.  
  187.  
  188. #include <winver.h>
  189.  
  190.  
  191. #include <winreg.h>
  192.  
  193.  
  194. #include <winnetwk.h>
  195.  
  196.  
  197. #ifndef WIN32_LEAN_AND_MEAN
  198.  
  199. #include <cderr.h>
  200.  
  201.  
  202. #include <dde.h>
  203.  
  204.  
  205. #include <ddeml.h>
  206.  
  207.  
  208. #include <dlgs.h>
  209.  
  210.  
  211. #include <lzexpand.h>
  212.  
  213.  
  214. #include <mmsystem.h>
  215.  
  216.  
  217. #include <nb30.h>
  218.  
  219.  
  220. #include <rpc.h>
  221.  
  222.  
  223. #include <shellapi.h>
  224.  
  225.  
  226. #include <winperf.h>
  227.  
  228. #if(_WIN32_WINNT >= 0x0400)
  229.  
  230. #include <winsock2.h>
  231.  
  232.  
  233. #include <mswsock.h>
  234.  
  235. #else
  236.  
  237. #include <winsock.h>
  238.  
  239. #endif /* _WIN32_WINNT >=  0x0400 */
  240.  
  241. #if(_WIN32_WINNT >= 0x0400)
  242. #ifndef NOCRYPT
  243.  
  244. #include <wincrypt.h>
  245.  
  246. #endif
  247. #endif /* _WIN32_WINNT >=  0x0400 */
  248.  
  249. #ifndef NOGDI
  250.  
  251. #include <commdlg.h>
  252.  
  253.  
  254. #include <winspool.h>
  255.  
  256. #ifdef INC_OLE1
  257.  
  258. #include <ole.h>
  259.  
  260. #else
  261.  
  262. #include <ole2.h>
  263.  
  264. #endif /* !INC_OLE1 */
  265. #endif /* !NOGDI */
  266. #endif /* WIN32_LEAN_AND_MEAN */
  267.  
  268. #ifdef INC_OLE2
  269.  
  270. #include <ole2.h>
  271.  
  272. #endif /* INC_OLE2 */
  273.  
  274. #ifndef NOSERVICE
  275.  
  276. #include <winsvc.h>
  277.  
  278. #endif
  279.  
  280. #if(WINVER >= 0x0400)
  281. #ifndef NOMCX
  282.  
  283. #include <mcx.h>
  284.  
  285. #endif /* NOMCX */
  286.  
  287. #ifndef NOIME
  288.  
  289. #include <imm.h>
  290.  
  291. #endif
  292. #endif /* WINVER >= 0x0400 */
  293.  
  294. #ifndef RC_INVOKED
  295. #if     ( _MSC_VER >= 800 )
  296. #pragma warning(default:4001)
  297. #endif
  298. #endif /* RC_INVOKED */
  299.  
  300. #endif /* RC_INVOKED */
  301.  
  302. #endif /* _INC_WINDOWS */
  303.  
  304. #pragma option pop
  305. #endif /* _WINDOWS_ */
  306.